﻿<Window x:Class="RapidDownloader.Modules.Views.Diagnostics.BindingsOverview"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:diag="clr-namespace:RapidDownloader.Modules.Views.Diagnostics"
        Title=".NET Properties used in Binding Paths" Height="450" Width="450" WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <ResourceDictionary>
            <DataTemplate DataType="{x:Type diag:ReflectPropertyDescriptorInfo}">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{Binding TypeName, Mode=OneTime}"/>
                    <TextBlock>.</TextBlock>
                    <TextBlock FontWeight="Bold" Text="{Binding PropertyName, Mode=OneTime}"/>
                    <TextBlock Text="{Binding DisplayHandlerCount, Mode=OneTime}"/>
                </StackPanel>
            </DataTemplate>
        </ResourceDictionary>
    </Window.Resources>

    <DockPanel>
        <Button DockPanel.Dock="Top" Margin="4" Click="RefreshButtonClicked">_Refresh</Button>
        <ScrollViewer Margin="4">
            <ItemsControl ItemsSource="{Binding ReflectProperties}"/>
        </ScrollViewer>
    </DockPanel>
</Window>
